<script lang="ts">
import { h, resolveDynamicComponent } from 'vue';

function Icon(props, ctx) {
	const Component = resolveDynamicComponent(`icon-${props.icon}`); //icon图标
	return h(<string>Component);
}
export default Icon;
</script>

<style scoped lang="less"></style>
